<template>
  <el-dialog title="查看" :visible.sync="dialogVisible" width="60%" class="popup" :before-close="handleClose">
    <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
      <el-tab-pane label="事件基本信息" name="first">
        <el-descriptions title="申报人信息">
          <el-descriptions-item label="申报人">
            <el-input size="mini" placeholder="请输入内容" v-model="input2">
            </el-input>
          </el-descriptions-item>
          <el-descriptions-item label="电话">
            <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
          </el-descriptions-item>
          <el-descriptions-item label="联系人">
            <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
          </el-descriptions-item>
          <el-descriptions-item label="联系电话">
            <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
          </el-descriptions-item>
        </el-descriptions>
        <br />
        <el-descriptions title="事件信息">
          <el-descriptions-item label="事件编号">
            <el-input size="mini" placeholder="请输入内容" v-model="input2">
            </el-input>
          </el-descriptions-item>
          <el-descriptions-item label="申报类型">
            <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
          </el-descriptions-item>
          <el-descriptions-item label="事件来源">
            <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
          </el-descriptions-item>
          <el-descriptions-item label="事件性质">
            <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
          </el-descriptions-item>
          <el-descriptions-item label="创建时间">
            <el-date-picker size="mini" v-model="value1" type="date" placeholder="选择日期">
            </el-date-picker>
          </el-descriptions-item>
          <el-descriptions-item label="附件信息">
            <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
          </el-descriptions-item>
        </el-descriptions>
        <br>
        <el-descriptions title="指派信息">
          <el-descriptions-item label="指派人">
            <el-input size="mini" placeholder="请输入内容" v-model="input2">
            </el-input>
          </el-descriptions-item>
          <el-descriptions-item label="电话">
            <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
          </el-descriptions-item>
        </el-descriptions>
        <br>
        <el-descriptions title="接单信息">
          <el-descriptions-item label="接单人">
            <el-input size="mini" placeholder="请输入内容" v-model="input2">
            </el-input>
          </el-descriptions-item>
          <el-descriptions-item label="电话">
            <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
          </el-descriptions-item>
        </el-descriptions>
        <br>
        <el-descriptions title="处理信息">
          <el-descriptions-item label="现场描述">
            <el-input size="mini" placeholder="请输入内容" v-model="input2">
            </el-input>
          </el-descriptions-item>
          <el-descriptions-item label="解决方案">
            <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
          </el-descriptions-item>
        </el-descriptions>
      </el-tab-pane>
      <el-tab-pane label="业务流程" name="second">
        <el-descriptions title="业务流程">
          <el-descriptions-item label="时间">
            <el-date-picker size="mini" v-model="value1" type="date" placeholder="选择日期">
            </el-date-picker>
          </el-descriptions-item>
          <el-descriptions-item label="人员姓名">
            <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
          </el-descriptions-item>
          <el-descriptions-item label="操作内容">
            <el-input size="mini" placeholder="请输入内容" v-model="input2"></el-input>
          </el-descriptions-item>
        </el-descriptions>
      </el-tab-pane>
    </el-tabs>
    <span slot="footer" class="dialog-footer">
      <el-button type="primary" size="small" @click="dialogVisible = false">确定</el-button>
    </span>
  </el-dialog>
</template>

<script>
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
export default {
  components: {
  },
  data () {
    return {
      dialogVisible: false,
      ruleForm: {
        pass: '',
        checkPass: '',
        age: ''
      },

      value: null,
      activeName: 'first',
      // define options
      options: [{
        id: 'a',
        label: 'a',
        children: [{
          id: 'aa',
          label: 'aa',
        }, {
          id: 'ab',
          label: 'ab',
        }],
      }, {
        id: 'b',
        label: 'b',
      }, {
        id: 'c',
        label: 'c',
      }],
    }
  },
  computed: {
    rules () {
      return {
        pass: [
          { required: true, message: '请输入活动名称', trigger: 'blur' },
        ],
        checkPass: [
          { required: true, message: '请输入活动名称', trigger: 'blur' },
        ],
        age: [
          { required: true, message: '请输入活动名称', trigger: 'blur' },
        ]
      }
    }

  },
  methods: {
    toggleSees (flag) {
      this.dialogVisible = flag
    },
    handleClose (done) {
      this.$confirm('确认关闭？')
        .then(_ => {
          done()
        })
        .catch(_ => { })
    }
  }
};
</script>

<style lang="scss" scoped>
.el-descriptions {
  border-bottom: 1px solid #cdd0db;
}

.popup {
  ::v-deep .el-dialog {
    border-radius: 4px;
  }
  ::v-deep .el-dialog__header {
    border-bottom: 1px solid #cdd0db;
  }
  ::v-deep .el-dialog__body {
    padding: 30px;
  }
}
</style>

